package cn.huiyunche.base.service.interfaces;


import cn.huiyunche.base.service.model.DWaybillVehicle;
import cn.huiyunche.base.service.vo.OrderCostTo;

/**
 * The interface D waybill vehicle service.
 *
 * @FileName: cn.huiyunche.service.base.tms.interfaces
 * @Description: Description
 * @author: Aaron
 * @date: 2016 /11/2 下午3:24
 */
public interface DWaybillVehicleService {

    /**
     * Add long.
     *
     * @param vehicle the vehicle
     * @return the long
     */
    Long add(DWaybillVehicle vehicle);

    /**
     * Update int.
     *
     * @param oilPrice the oil price
     * @return the int
     */
    int update(DWaybillVehicle vehicle);

    /**
     * Update by d waybill id.
     *
     * @param waybillId   the waybill id
     * @param orderCostTo the order cost to
     */
    void updateByDWaybillId(Long waybillId, OrderCostTo orderCostTo);

    /**
     * Gets by d waybill id.
     *
     * @param waybillId the waybill id
     * @return the by d waybill id
     */
    DWaybillVehicle getByDWaybillId(Long waybillId);
}
